package com.lagou.homework3;

import java.util.*;

public class PokerTest {


    public static void main(String[] args) {

         //创建一个Map集合
        Map<Integer,String> poker =new HashMap<>();
        List<Integer> It1 = new ArrayList<>();
        //存储花色
        List<String> colors = Arrays.asList("♠","♣","♦","♥");
        //存储 牌号
        List<String> number = Arrays.asList("2","A","K","Q","J","10","9","8","7","6","5","4","3");

        poker.put(0,"大王");    //把大小王放入扑克中
        poker.put(1,"小王");
        int index =2;
        for(int i =0;i<13 ;i++){
            for(int j =0 ;j<4 ; j++){
                poker.put(index,colors.get(j)+number.get(i));   //花色+扑克牌号码
                index++;
        }
        }
        Set<Map.Entry<Integer, String>> s1 = poker.entrySet();
        for(Map.Entry<Integer, String> me :s1){      //打印整幅扑克牌
            System.out.print(me.getValue()+"\t");
        }

    }
}
